package com.fare.taluo.application;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.fare.taluo.vo.core.ReportDownloadQueryVo;
import com.fare.taluo.vo.core.ReportUploadInfoVO;
import com.dayatang.querychannel.support.Page;


public interface ReportDownloadApplication {
	
	/**
	 * 查询报告上传信息，封装成page对象
	 * @param query 查询条件
	 * @param pageNo 页码
	 * @param pageSize 每页条数
	 * */
	public Page<ReportUploadInfoVO> findByPage(ReportDownloadQueryVo query,int pageNo, int pageSize);
	
	/**
	 * 下载报告文件
	 * @param id 报告上传信息表ID
	 * */
	public void download(String id,HttpServletResponse response,HttpServletRequest request)throws Exception;
	
	/*
	 * 保存文件上传信息
	 * @param fileName 文件名
	 * @param miaoshu 文件描述
	 * @param operator 作者
	 * **/
	public void saveUploadInfo(String fileName,String miaoshu,String operator)throws Exception;
	
	
	public void saveUploadInfo(String fieldName,String miaoshu,String path,String operator,int year,int month) throws Exception;
	
	public ReportUploadInfoVO findById(String id) throws Exception;
}
